home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-27 | 991 b | 42 lines | [TEXT/ttxt] |
- format debug "-- Compiling Utility Functions . . .\n" undefined undefined
-
- function loadPict theFile->
- (
- local pictStream := getStream theScriptDir name:theFile @readable
- return importMedia theImportExportEngine pictStream @image @pict @bitmap
- )
-
- function makeRGBBrush r g b -> ( return new brush color:(new RGBColor red:r green:g blue:b))
-
- function makeBrush rgb -> ( return new brush color:(rgb))
-
- function setCastInfo dirInfo ->
- (
- castList := dirInfo[@cast]
- castByName := dirInfo[@castNames]
- return OK
- )
-
- function castFromName castName ->
- (
- local castNum := getKeyOne castByName (castName as String)
- if castNum = empty do (
- return empty
- )
- return castList[castNum]
- )
-
- function frameFromLabel theLabel dirInfo->
- (
- local lblList := dirInfo[@markers]
- for lblNum := 1 to lblList.size do (
- if lblList[lblNum].label = theLabel do (
- return lblList[lblNum].start
- )
- )
- return 0
- )
-
-
- #(undefined,undefined,#("loadPict","makeRGBBrush","makeBrush","setCastInfo","castFromName"))
-